package com.gongjian.utile;


import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONArray;
/**
 * @author 董浩
 * @Description
 * @create 2019-03-21 14:58
 */


public class CodeEntity extends JSONObject {
    int code;
    String message;
    long  count ;


    public CodeEntity(int code){
            put("code",code);
    }
    public CodeEntity(long count,int code, String message){
        put("code",code);
        put("count",count);
        put("message",message);
    }
    public CodeEntity(int code, String message){
        put("code",code);
        put("message",message);
    }
    public void setData(JSONObject data){
        put("data",data);
    }

    public void setData(JSONArray data){
        put("data",data);
    }


}
